import { createApp } from 'vue'
import './style.css'
import "element-plus/dist/index.css"
import ElementPlus from "element-plus"
import * as ElementPlusIconsVue from "@element-plus/icons-vue"
import CommonComponents from "@/components/index"
import { zhCn } from 'element-plus/es/locales.mjs'
import "virtual:svg-icons-register"
import pinia from "@/pinia/index"

import App from './App.vue'
import router from "./router"

const app = createApp(App);

app.use(router).use(ElementPlus, {
    locale: zhCn
}).use(pinia).use(CommonComponents).mount("#app")


for (const [name, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(name, component)
}

